package shop;
import java.io.FileNotFoundException;

import common.SaveSystem;

import createdFurnituries.RoomList;
import builderObserver.builderObserver;
import furnitureBuilder.Bedroom;
import furnitureBuilder.BedroomBuilder;
/**
 * The main class
 * @author dbatir
 *
 */
public class Main {
	public static void main(String[] args) throws FileNotFoundException {
		BedroomBuilder builder = new BedroomBuilder();
		new builderObserver(builder);
		Bedroom cherryRoom = builder.buildCherryRoom();
		cherryRoom.showBedroomItems();
		Bedroom oakRoom = builder.buildOakRoom();
		oakRoom.showBedroomItems();
		oakRoom = builder.buildMixedRoom();
		oakRoom.showBedroomItems();
		new SaveSystem();
		System.out.println(" Search for Cherry lumber type beedroom ");
		if((oakRoom = RoomList.getSpecificLumberTypeRoom("Cherry")) != null) {
			System.out.println(" -- searched  cherry lumber type -- ");
			oakRoom.showBedroomItems();
		}
	}
}
